import express from 'express'
const router = express.Router() //路由模块

router.post('/login', (req, res) => {
  console.log(req.body)
  res.send({
    mgs: req.body,
  })
})

router.post('/register', (req, res) => {
  console.log(req.body)
  res.send({
    mgs: req.body,
  })
})

export default router
